# -*- coding:utf-8 -*- 
# Author: json_steve

from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from iHome import create_app, db

app = create_app('development')

manager = Manager(app)
# 迁移初始化 无返回值 同Session因为通过终端命令操作
Migrate(app, db)
# 添加迁移命令 调用之前名字是db
manager.add_command('db', MigrateCommand)


if __name__ == '__main__':
    manager.run()


